Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retryable errors for deadlock and lock wait timeout #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dharkness
Copy link

Adds two retryable lock-related errors:

  • 1205: ER_LOCK_WAIT_TIMEOUT
    Lock wait timeout exceeded; try restarting transaction

  • 1213: ER_LOCK_DEADLOCK
    Deadlock found when trying to get lock; try restarting transaction

@daniel-nichter
Copy link
Member

Thank you for the commit. Very ironic timing with #3 that adds lock wait time. Since PR 3 has a test (and was submitted first), let's merge that one first. Then could reuse your work off that?

@dharkness
Copy link
Author

Yeah, I saw #3 after submitting my PR. I saw no changes for a while so wasn't sure if you'd want the PR, but if so I can add a test and rebase after you merge the other PR. Thanks for creating this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants